var mongoose = require("mongoose");

var cropsSchema = new mongoose.Schema({
    type: { type: String },
    price: { type: Number },
    productivity: { type: Number },
    decay_date: { type: Number },
    maturation_date: { type: Number },
    decay_time: { type: Number },
    parcelle_id: { type: String},
    i: {type: Number},
    j: {type: Number}
});

var crops = mongoose.model('Crops', cropsSchema);

module.exports = {
    Crops: crops
}
